/** Progetto PRAISED **/
package it.uniroma3.dia.praised.factory;

import org.ccil.cowan.tagsoup.Parser;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.XMLReader;

/**
 * XmlReaderFactory : This class model the XMLReader
 * 
 * @author Accosta Augusto
 * @author Lopez Elisabetta
 *
 */
public class XmlReaderFactory {
	
	/**
	 * This method create and return the reader instance.
	 * 
	 * @throws SAXNotRecognizedException
	 * @throws SAXNotSupportedException
	 */
	public static XMLReader newXmlReader() throws SAXNotRecognizedException, SAXNotSupportedException {
		XMLReader reader = new Parser();
		reader.setFeature(Parser.namespacesFeature, false);
		reader.setFeature(Parser.namespacePrefixesFeature, false);
		return reader;
	}
	
}
